package com.kfm.hotel.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kfm.hotel.domain.SysRole;
import com.kfm.hotel.domain.SysUserRole;
import com.kfm.hotel.service.SysUserRoleService;
import com.kfm.hotel.mapper.SysUserRoleMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 10854
* @description 针对表【sys_user_role(用户角色关系表)】的数据库操作Service实现
* @createDate 2023-06-26 10:49:38
*/
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole>
    implements SysUserRoleService{

    @Override
    public List<SysRole> getRoleByUserId(Integer userId) {
        return getBaseMapper().getRoleByUserId(userId);
    }
}




